<?php

namespace App\Admin\Controllers;

use App\Admin\Repositories\Config;
use Dcat\Admin\Form;
use Dcat\Admin\Layout\Content;
use Dcat\Admin\Http\Controllers\AdminController;
use Dcat\Admin\Widgets\Card;

class CashConfigController extends AdminController
{

    public function index(Content $content)
    {
        // 标题和内容
        $card = Card::make("配置信息",new \App\Admin\Forms\Config\Cash());
        // 设置间距
        $card->padding('0 15px 0 12px');
        // 设置底部内容
        return $content
            ->translation($this->translation())
            ->title($this->title())
            ->description($this->description()['index'] ?? trans('admin.list'))
            ->body($card);
    }
}
